import React, { Component } from 'react'
import { HashRouter as Router, Link } from 'react-router-dom'
import RouterView from '../router'
import roules from '../router/roules'
export default class LayoutFZ extends Component {
    render() {
        return (
            <div>
                <Router>
                    <Link to="home">home</Link>
                    <br />
                    <Link to="about">about</Link>
                    <br />
                    <Link to="hello">hello</Link>
                    <RouterView roules={roules}></RouterView>{/* 这种是按照函数组件调用  */}
                    {/* {RouterView()} 这种是按照函数调用 */}
                </Router>
            </div>
        )
    }
}
